package com.yl.pattern.creatormodel.prototype.demo2;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 3:56
 * @ClassName CitationTest
 * @Description 访问测试类
 */
public class CitationTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        Citation c1 = new Citation();
        c1.setName("张三");

        //复制奖状

        Citation c2 = c1.clone();
        //将奖状的名字修改李四
        c2.setName("李四");

        c1.show();
        c2.show();
    }
}
